#pragma once
#include <string>
#include "UpdateRule/UpdateRuleTable.h "
using namespace std;

class CG_Base
{
public:
	CG_Base(void);

	~CG_Base(void);

	bool  Init();

	CString GetThisAppPath();

	CString GetSysDateOrTime(const int iKind);

	void   GenerateKeys(std::string& moduluskeys, std::string&privkexp, std::string&publikexp);

	std::string m_mod_server;
	std::string m_pubkey_server;
	std::string  m_prikey_server;
	int m_nPort;
	CUpdateRuleTable     m_upDateTable;
};

extern CG_Base  g_BaseObj;
